<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

///////////////////////// USER ///////////////////////////
//user
$route['nguoi-dung']              = 'user/authorize/userCommand';
$route['dang-ki/do']              = 'user/authorize/signup';
$route['dang-nhap/do']            = 'user/authorize/login';
$route['dang-xuat']               = 'user/authorize/logout';
$route['kich-hoat']               = 'user/authorize/active';
$route['kich-hoat/do']            = 'user/authorize/doActive';
$route['quen-mat-khau/do']        = 'user/authorize/doForgetPassword';
$route['quen-mat-khau/reset']     = 'user/authorize/resetPassword';
$route['quen-mat-khau/reset/do']  = 'user/authorize/doResetPassword';
$route['tai-khoan']               = 'user/user/index';
$route['tai-khoan/cap-nhat']      = 'user/user/updateInfo';
$route['he-thong/cap-nhat']       = 'user/user/updateSytemInfo';
//tools
$route[SHOP_FOLDER  . 'hinh-anh/tai-len'] = 'user/user/upload';
$route[ADMIN_FOLDER . 'hinh-anh/tai-len'] = 'user/user/upload';
$route[ADMIN_FOLDER . 'hinh-anh/xoa']     = "user/user/deleteUpload";
$route[ADMIN_FOLDER . 'hinh-anh/crop']    = "user/user/cropUpload";
//shop
$route[SHOP_SLUG . '/cap-nhat']          = 'user/user/updateShopInfo';
$route[SHOP_SLUG . '/cap-nhat-chi-tiet'] = 'user/user/updateShopDetailInfo';
$route[SHOP_SLUG . '/dang-ki']           = 'user/user/userRegisterForShop';
$route[SHOP_SLUG . '/dang-ki/do']        = 'user/user/userSubmitRegisterForShop';
///////////////////////////////////////////////////////////////